import http from "../utils/request";
function carousel() {
  return http({
    method: "get",
    url: "/admin/banner/removeAll",
    data: {},
  });
}

function kancarousel() {
  return http({
    method: "get",
    url: "/admin/banner/list",
    data: {},
  });
}

function carouselAdd(img, alt, link) {
  return http({
    method: "post",
    url: "/admin/banner/add",
    data: {
      img,
      alt,
      link,
    },
  });
}
export { carousel, kancarousel, carouselAdd };
